package com.java8.ch04;

public class OpBitEquals {

	public static void main(String[] args) {
		int a = 1;
		int b = 2;
		int c = 3;

		a |= 4; // 0001 | 0100 = 0101(5)
		b >>= 1; // 2 / 2 = 1
		c <<= 1; // 3 * 2 = 6
		a ^= c; // 0101 ^ 0110 = 0001(6)

		System.out.println("a = " + a);
		System.out.println("b = " + b);
		System.out.println("c = " + c);
	}

}
